using WpfModelEditor.Core.Plugins;
using HelixToolkit.Wpf.SharpDX.Model.Scene;
using WpfModelEditor.Core.Controls;

namespace ViewPlugin
{
    /// <summary>
    /// PropertyPanel.xaml 的交互逻辑
    /// </summary>
    public partial class PropertyPanel
    {
        private IHost Host { get; set; }
        public PropertyPanel()
        {
            InitializeComponent();
        }
        public PropertyPanel(IHost host)
        {
            InitializeComponent();
            Host = host;
            pg.EditorCreator = new PropertyEditorCreator();
        }
        public void Update()
        {
            pg.SelectedObject = Host.SelectedObject;
        }
    }
}
